<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>分销级别设置</title>
<link href="<?php echo $_BASE_DIR?>css_v1/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $_BASE_DIR?>css_v1/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jmw.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/select-ui.min.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.DatePicker.js"></script>

<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
        width : 345           
    });
    $(".select2").uedSelect({
        width : 167  
    });
    $(".select3").uedSelect({
        width : 80
    });
});
</script>



</head>

<body>

<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="<?php echo url("leftmenu/bottom")?>">首页</a></li>
    <li><a href="#">分销级别设置</a></li>
    </ul>
    </div>
 <form method="post" action="<?php echo url("fxlevelset/index") ?>">
     <div style="clear: both;width:1100px;height:35px;line-height:35px;margin-bottom:5px;">
    <div class="rightinfo"> 
<!--------------------------------------->  


        </div>
         </div>

</form> 
    <div class="tools">
    
        <ul class="toolbar">
        <li ><a href="<?php echo url("fxlevelset/add")?>"><span><img src="<?php echo $_BASE_DIR?>images_v1/t01.png" /></span>添加</a></li>
       <li ><a href="#" onclick="editindex('fxlevelsetid','<?php echo url("fxlevelset/add")?>/id/')"><span><img src="<?php echo $_BASE_DIR?>images_v1/t02.png" /></span>修改</a></li>
       
        <li class="click"><a href="#" onclick="isDel('fxlevelsetid','<?php echo url("fxlevelset/del")?>','ids[]')"><span><img src="<?php echo $_BASE_DIR?>images_v1/t03.png" /></span>删除</a></li>
       
        </ul>

    
    </div>
<!---------------------------------------------------------------------------- -->  

        <script>
    $('#usedtime_timestart').datePicker({followOffset : [0, 24]});
    $('#usedtime_timeend').datePicker({followOffset : [0, 24]});
    </script>
    <p style="color: red;line-height: 36px">提示：分销商升级及收益结算根据分销商等级来的，分销商等级设置的时候只允许填写数字，而且每个模块不能重复</p>
<form action="" method="post" name="form">
    
    <table class="tablelist">

        <thead>
        <tr>
        <th width="5%"><input type="checkbox" value="on" name="chkall" onClick="CheckAll(this.form)"/></th>
            
               <th width="15%" >分销商名称</th>
               <th width="15%" >模块</th>
                <th width="15%" >分销商级别</th>

                
            
        </tr>
        </thead>
        <tbody>
        <?php foreach ($item as $k=>$v):?>
        <tr>
        <td><input name="fxlevelsetid" id="fxlevelsetid" type="checkbox" value="<?php echo $v->id?>" /></td>

        <td><?php echo h($v->level_name)?></td>
        <td><?php 
            switch ($v->type) {
                case 0:
                    $name='视频、直播';
                    break;
                case 1:
                    $name='商城';
                    break;
                case 2:
                    $name='vip充值';
                    break;
                case 3:
                    $name='题库';
                    break;
                default:
                    $name='其它';
                    break;
            }
            echo h($name);
        ?></td>
        
        <td ><?php echo h($v->grade)?></td>



        </tr> 
        <?php endforeach;?>
        
        </tbody>
    </table>
    
   </form>
 
        <?php echo Q::control('pagination','pagination',array('url_args'=>$param,'pagination'=>$pagination,'show_count'=>1))?>
    </div>
  
    <script type="text/javascript">
    $('.tablelist tbody tr:odd').addClass('odd');
    </script>

</body>
<iframe id="excel" name="excel" width="0" height="0"></iframe>
</html>


